package com.imooc.dto.category;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;

/**
 * @ClassName: CategoryDto
 * @Description: 商品分类DTO
 * @author: limingxing
 * @Date: 2019-12-25 19:30
 */
@Data
@ApiModel(value = "商品分类DTO")
public class CategoryDto {

    @ApiModelProperty(value = "分类id主键")
    private Integer id;

    @ApiModelProperty(value = "分类名称")
    private String name;

    /**
     * 分类类型 分类得类型，
     1:一级大分类
     2:二级分类
     3:三级小分类
     */
    @ApiModelProperty(value = "分类得类型")
    private Integer type;

    @ApiModelProperty(value = "父id 父id 上一级依赖的id，1级分类则为0，二级三级分别依赖上一级")
    @Column(name = "father_id")
    private Integer fatherId;

    @ApiModelProperty(value = "图标 logo")
    private String logo;

    @ApiModelProperty(value = "口号")
    private String slogan;

    @ApiModelProperty(value = "分类图")
    private String catImage;

    @ApiModelProperty(value = "背景颜色")
    private String bgColor;
}
